Ext.define('AmpleHarvest.objects.Statistics.Window.cColumnCenter',
{
	extend			: 'Ext.Panel',
	region			: "center",
	frame			: true,
	requires: 
	[
	 //  'MetricsViewer.view.ProcessingTabPanel',
	//   'MetricsViewer.view.ErrorTabPanel'
	],
	
	frameHeader:false,
	padding:0,
	layout			: 'fit',
	html			: "<p>Please select the view you would like to see from the left hand Navigation menu</p>",
	initComponent	: function()
	{
		this.callParent();
		this.add_Events();
	},

	add_Events		: function()
	{
		if (typeof m_obj_AmpleHarvest_ViewPort === 'undefined')
		{
			Ext.Function.defer(this.add_Events, 100, this);
			return;
		}
		m_obj_AmpleHarvest_ViewPort.on( 
				AmpleHarvest.eventHandler.cWindowEvents.C_STR_EVENT_STAT_LOAD,
				this.load_Stat, this
		);
	},

	load_Stat		: function(obj_View)
	{
		this.removeAll();
		
		this.add(Ext.create(obj_View));
	}
}
);